package ren.kane.asdppp.transaction.change.method;

import ren.kane.asdppp.method.DirectMethod;
import ren.kane.asdppp.method.PaymentMethod;

/**
 * @author renrk(1275) on 2019-04-20 9:46 PM
 **/
public class ChangeDirectTransaction extends ChangeMethodTransaction {

    private String bank;

    private String account;

    public ChangeDirectTransaction() {
    }

    public ChangeDirectTransaction(int empId, String bank, String account) {
        super(empId);
        this.bank = bank;
        this.account = account;
    }

    @Override
    protected PaymentMethod getMethod() {
        return new DirectMethod(bank, account);
    }
}
